package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);

    @Select("select * from t_role")
    List<Role> findall();

    @Select("select * from t_role where name like #{queryString}")
    Page<Role> pageQuery(String queryString);
}
